import { axios } from "../../utils/request";

const api = {
  PageList: "/erp/bankAccount/pageList",
  Save: "/erp/bankAccount/save",
  DELETE: "/erp/bankAccount/delete"
};


/**
 * 获取银行账户列表
 */
export function pageList(parameter) {
  return axios({
    url: api.PageList,
    method: "get",
    params: parameter,
    timeout: 500000,
  });
}

/**
 * 新增/修改银行账户
 * @param {*} data
 */
export function save(data) {
  console.log(data);
  return axios({
    url: api.Save,
    method: "post",
    data: data
  });
}

/**
 * 删除银行账户
 */
export function deleteBankAccount(data) {
  return axios({
    url: api.DELETE,
    method: "post",
    data: data
  });
}